#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include <stdio.h>

#include "driver/sdmmc_host.h"
#include "esp_vfs_fat.h"
#include "sdmmc_cmd.h"
#include <string.h>
#include <sys/stat.h>
#include <sys/unistd.h>


#include "driver/gpio.h"
#include "driver/sdmmc_defs.h"
#include "driver/sdmmc_host.h"
#include "esp_log.h"
#include "esp_system.h"
#include "esp_vfs_fat.h"
#include <stdio.h>
#include <string.h>

#include "ArnoldWeb.h"
#include "SD_INIT.h"
#include "my_cmd.h"
#include "sdmmc_cmd.h"


// 任务 1
void task1(void* pvParameters)
{
    SD_Init();
    vTaskDelay(pdMS_TO_TICKS(1000));   // 延迟 1 秒
    
    mDNS_WebINit();
    while (1)
    {
        // printf("on core %d Task 1 is running \n", xPortGetCoreID());



        vTaskDelay(pdMS_TO_TICKS(1000));   // 延迟 1 秒
    }
}

// 任务 2
void task2(void* pvParameters)
{
    while (1)
    {
        // printf("on core %d Task 2 is running \n", xPortGetCoreID());
        vTaskDelay(pdMS_TO_TICKS(1500));   // 延迟 1.5 秒
    }
}